#!/usr/bin/python
import cgitb
cgitb.enable()

import cgi ,time,os,urllib

def get_present_time():
	i_data = time.localtime()
	time_e = "now is : %d / %d / %d  %d:%d:%d <P>" %(i_data[0],i_data[1],i_data[2],i_data[3],i_data[4],i_data[5])
	return time_e

 
username = "qingluan"
def authentication(username_in):
	if username == username_in:
		print "ok right <P>"
		return 1
	else :
		print "try again: <P>"
		return 0


print "Content-type: text/html"
print

print """
<HTML>
<HEAD>
<TITLE>My Cgi Programer</TITLE></HEAD>
<BODY>"""
time_my = get_present_time()
print "%s" % time_my

print "</BODY></HTML>"